package main

import "fmt"

func main() {
	numChan := make(chan int, 10)
	for i:=1 ;i<=10; i++{
		numChan <- i
	}

	for true {
		select {
		case v:= <- numChan:
			fmt.Printf("get number %d\n" ,v)
		default:
			fmt.Println("get over")
			return
		}
	}

}
